<%@ Page Language="VB" MasterPageFile="~/Template.master" AutoEventWireup="false" CodeFile="ManageUsers.aspx.vb" Inherits="Admin_ManageUsers" title="Account Management" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div class= "secctiontitle">Account Management</div>
<p></p>
<b>Total registerd users:<asp:Literal runat="server" ID="lblTotUsers" /><br />
- Users online:<asp:Literal runat="server" ID="lblOnlineUsers" /></b>
<p></p>
<asp:Repeater runat="server" ID="rptAlphabet" OnItemCommand="rptAlphabet_ItemCommand">
    <ItemTemplate><asp:LinkButton runat ="server" Text='<%# Container.DataItem %>' CommandArgument='<%# Container.DataItem %>' />
    </ItemTemplate>
</asp:Repeater>
<p></p>
Otherwise use the controls below to search users by partial username or e-mail:
<p></p>
<asp:DropDownList runat="server" ID= "ddlSearchTypes">
    <asp:ListItem Text="UserName" Selected="True" />
    <asp:ListItem Text="E-mail" />
</asp:DropDownList>
contains
<asp:TextBox runat="server" ID="txtSearchText" />
<asp:Button runat="server" ID="btnSearch" Text="Search"  />

<asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" DataKeyNames="username" >
      <Columns>
         <asp:BoundField DataField="username" HeaderText="User Name" />
         <asp:HyperLinkField DataNavigateUrlFields="email" DataNavigateUrlFormatString="mailto:{0}" DataTextField="email" HeaderText="Email" />
         <asp:BoundField DataField="CreationDate" HeaderText="Created" />
         <asp:BoundField DataField="LastActivityDate" HeaderText="Last Activity" />
         <asp:CheckBoxField DataField="IsApproved" HeaderText="Approved" />
         <asp:HyperLinkField DataNavigateUrlFields="username" DataNavigateUrlFormatString="EditUser.aspx?username={0}"
            HeaderText="Edit" Text="&lt;img src='../images/edit.gif' border=0 /&gt;" />
         <asp:CommandField ButtonType="Image" DeleteImageUrl="~/images/Delete.gif" ShowDeleteButton="True" />
      </Columns>
      <EmptyDataTemplate>
         No users Match Search Criteria
      </EmptyDataTemplate>
   </asp:GridView>

</asp:Content>


